package com.ruoyi.quartz.task;

import com.ruoyi.quartz.service.MailSeduService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component("mailTask")
@Slf4j
public class MailTask {

    @Resource
    private MailSeduService mailSeduService;

    /**
     * 初始化出差人员状态 为出差中
     */
    public void receiveMail() throws Exception {
        log.info("receive mail start");
        mailSeduService.receiveMail();
    }

}
